#!/usr/bin/env python3

# from time import time
import requests
from datetime import datetime

today = datetime.today().strftime("%Y%m%d")
data = requests.get("https://box.maoyan.com/promovie/api/box/second.json?beginDate=%s"%today,timeout=60).json()['data']
for i in data['list']:
    name = i['movieName']
    if name == "诛仙Ⅰ":
        li = [name,i['releaseInfo'], i['sumBoxInfo'], str(datetime.now())[:19]]
        print(",".join(li))
